<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8">
    <title>B50成绩单</title>
    <style>
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }
        
        body {
            margin: 0;
            padding: 20px;
            background: #f5f5f5;
            color: #333;
            font-family: "Microsoft YaHei", sans-serif;
            min-width: 2048px;
        }
        
        .container {
            width: 2800px;
            margin: 0 auto;
            padding: 25px;
            background: #ffffff;
            border-radius: 20px;
            box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
        }
        
        /* 头部样式优化 */
        .header {
            position: relative;
            padding: 30px 0;
            margin-bottom: 30px;
            background: linear-gradient(135deg, #f6f8fc 0%, #e9f0f7 100%);
            border-radius: 15px;
            box-shadow: 0 2px 15px rgba(0, 0, 0, 0.05);
            overflow: visible;
        }
        
        .header-plate {
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            width: 800px;
            height: auto;
            object-fit: cover;
            z-index: 0;
            opacity: 0.9;
            pointer-events: none;
        }
        
        .user-info {
            position: relative;
            z-index: 2;
            width: 30%;
            margin: 0 auto;
            padding: 20px 30px;
            background: #ffffff00;
            border-radius: 18px;
            box-shadow: 0 4px 25px rgba(0, 0, 0, 0.08);
            border: 1px solid #ffffff00;
            display: flex;
            align-items: center;
            gap: 25px;
        }
        
        .user-avatar {
            position: relative;
            z-index: inherit;
        }
        
        .user-icon {
            width: 100px;
            height: 100px;
            border-radius: 50%;
            object-fit: cover;
            box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
            border: 3px solid #fff;
        }
        
        .user-details {
            position: relative;
            z-index: inherit;
            flex: 1;
            display: flex;
            gap: 25px;
        }
        
        .user-basic {
            padding: 10px 15px;
            background: linear-gradient(135deg, rgba(255, 255, 255, 0.646), rgba(255, 255, 255, 0.52));
            border-radius: 12px;
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
        }
        
        .user-name {
            font-size: 28px;
            font-weight: bold;
            color: #2c3e50;
            margin-bottom: 8px;
            text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
        }
        
        .user-rating {
            font-size: 24px;
            color: #e67e22;
            font-weight: bold;
        }
        
        
        .score-label {
            font-size: 16px;
            color: #7f8c8d;
            margin-bottom: 5px;
        }
        
        .score-value {
            font-size: 26px;
            font-weight: bold;
            color: #e67e22;
        }
        
        /* 歌曲列表样式优化 */
        .song-section {
            background: #ffffff;
            padding: 25px;
            border-radius: 15px;
            box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
            margin-bottom: 30px;
        }
        
        .song-section h2 {
            font-size: 28px;
            color: #2c3e50;
            margin-bottom: 25px;
            padding-bottom: 15px;
            border-bottom: 2px solid #ecf0f1;
        }
        
        .song-grid {
            display: grid;
            grid-template-columns: repeat(5, 1fr);
            gap: 20px;
        }
        
        .song-card {
            position: relative;
            background: linear-gradient(135deg, #ffffff, #f8f9fa);
            padding: 15px;
            border-radius: 15px;
            box-shadow: 0 4px 15px rgba(0, 0, 0, 0.06);
            transition: all 0.3s ease;
            height: 100px;
            display: flex;
            align-items: center;
            border: 1px solid #eef2f7;
        }
        
        .song-card:hover {
            transform: translateY(-3px);
            box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
            filter: brightness(1.05);
        }
        
        .song-jacket {
            width: 85px;
            height: 85px;
            border-radius: 12px;
            margin-right: 15px;
            object-fit: cover;
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
        }
        
        .song-info {
            flex: 1;
            min-width: 0;
            padding-right: 85px;
        }
        
        .song-title {
            font-size: 16px;
            font-weight: bold;
            color: #2c3e50;
            margin-bottom: 8px;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }
        
        .song-details {
            display: flex;
            flex-wrap: wrap;
            gap: 8px;
            font-size: 14px;
            color: #7f8c8d;
        }
        
        .song-rating {
            color: #e67e22;
            font-weight: bold;
        }
        
        .song-achievements {
            position: absolute;
            top: 12px;
            right: 15px;
            font-size: 22px;
            font-weight: bold;
            color: #e67e22;
            text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
        }
        
        .song-icons {
            position: absolute;
            bottom: 12px;
            right: 15px;
            display: flex;
            gap: 8px;
            align-items: center;
        }
        
        .song-icons img {
            height: 26px;
            width: auto;
            filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.15));
        }
        
        .song-id {
            position: absolute;
            top: 12px;
            left: 15px;
            font-size: 14px;
            color: #95a5a6;
            font-family: monospace;
            background: rgba(255, 255, 255, 0.9);
            padding: 2px 6px;
            border-radius: 4px;
            box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
        }
        
        /* 添加左右信息框样式 */
        .side-info {
            position: absolute;
            top: 50%;
            transform: translateY(-50%);
            background: linear-gradient(135deg, rgba(255, 255, 255, 0.646), rgba(255, 255, 255, 0.52));
            padding: 15px 20px;
            border-radius: 12px;
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
            text-align: center;
        }

        .side-info.left {
            left: 50px;
        }

        .side-info.right {
            right: 50px;
        }

        .side-info-title {
            font-size: 18px;
            font-weight: bold;
            color: #2c3e50;
            margin-bottom: 5px;
        }

        .side-info-value {
            font-size: 24px;
            color: #e67e22;
            font-weight: bold;
        }

        /* 难度等级背景色样式 */
        /* Basic 1-1+ */
        .song-card[data-level="1"] {
            background: linear-gradient(135deg, #ffffff, #c4e1ff);
        }
        .song-card[data-level="1+"] {
            background: linear-gradient(135deg, #ffffff, #b3d9ff);
        }

        /* Basic 2-2+ */
        .song-card[data-level="2"] {
            background: linear-gradient(135deg, #ffffff, #c4e1ff);
        }
        .song-card[data-level="2+"] {
            background: linear-gradient(135deg, #ffffff, #b3d9ff);
        }

        /* Basic 3-3+ */
        .song-card[data-level="3"] {
            background: linear-gradient(135deg, #ffffff, #c4e1ff);
        }
        .song-card[data-level="3+"] {
            background: linear-gradient(135deg, #ffffff, #b3d9ff);
        }

        /* Advanced 4-4+ */
        .song-card[data-level="4"] {
            background: linear-gradient(135deg, #ffffff, #ffeb99);
        }
        .song-card[data-level="4+"] {
            background: linear-gradient(135deg, #ffffff, #ffe680);
        }

        /* Advanced 5-5+ */
        .song-card[data-level="5"] {
            background: linear-gradient(135deg, #ffffff, #ffeb99);
        }
        .song-card[data-level="5+"] {
            background: linear-gradient(135deg, #ffffff, #ffe680);
        }

        /* Advanced 6-6+ */
        .song-card[data-level="6"] {
            background: linear-gradient(135deg, #ffffff, #ffeb99);
        }
        .song-card[data-level="6+"] {
            background: linear-gradient(135deg, #ffffff, #ffe680);
        }

        /* Expert 7-7+ */
        .song-card[data-level="7"] {
            background: linear-gradient(135deg, #ffffff, #ffb3b3);
        }
        .song-card[data-level="7+"] {
            background: linear-gradient(135deg, #ffffff, #ff9999);
        }

        /* Expert 8-8+ */
        .song-card[data-level="8"] {
            background: linear-gradient(135deg, #ffffff, #ffb3b3);
        }
        .song-card[data-level="8+"] {
            background: linear-gradient(135deg, #ffffff, #ff9999);
        }

        /* Expert 9-9+ */
        .song-card[data-level="9"] {
            background: linear-gradient(135deg, #ffffff, #ffb3b3);
        }
        .song-card[data-level="9+"] {
            background: linear-gradient(135deg, #ffffff, #ff9999);
        }

        /* Master 10-10+ */
        .song-card[data-level="10"] {
            background: linear-gradient(135deg, #ffffff, #d9b3ff);
        }
        .song-card[data-level="10+"] {
            background: linear-gradient(135deg, #ffffff, #cc99ff);
        }

        /* Master 11-11+ */
        .song-card[data-level="11"] {
            background: linear-gradient(135deg, #ffffff, #d9b3ff);
        }
        .song-card[data-level="11+"] {
            background: linear-gradient(135deg, #ffffff, #cc99ff);
        }

        /* Master 12-12+ */
        .song-card[data-level="12"] {
            background: linear-gradient(135deg, #ffffff, #d9b3ff);
        }
        .song-card[data-level="12+"] {
            background: linear-gradient(135deg, #ffffff, #cc99ff);
        }

        /* Re:Master 13-13+ */
        .song-card[data-level="13"] {
            background: linear-gradient(135deg, #ffffff, #ff99cc);
        }
        .song-card[data-level="13+"] {
            background: linear-gradient(135deg, #ffffff, #ff80bf);
        }

        /* Re:Master 14-14+ */
        .song-card[data-level="14"] {
            background: linear-gradient(135deg, #ffffff, #ff99cc);
        }
        .song-card[data-level="14+"] {
            background: linear-gradient(135deg, #ffffff, #ff80bf);
        }

        /* Re:Master 15 */
        .song-card[data-level="15"] {
            background: linear-gradient(135deg, #ffffff, #ff99cc);
        }

        /* 难度等级文字颜色 */
        /* Basic 1-3+ */
        .song-card[data-level="1"] .song-details span:first-child,
        .song-card[data-level="1+"] .song-details span:first-child,
        .song-card[data-level="2"] .song-details span:first-child,
        .song-card[data-level="2+"] .song-details span:first-child,
        .song-card[data-level="3"] .song-details span:first-child,
        .song-card[data-level="3+"] .song-details span:first-child {
            color: #27ae60;
        }

        /* Advanced 4-6+ */
        .song-card[data-level="4"] .song-details span:first-child,
        .song-card[data-level="4+"] .song-details span:first-child,
        .song-card[data-level="5"] .song-details span:first-child,
        .song-card[data-level="5+"] .song-details span:first-child,
        .song-card[data-level="6"] .song-details span:first-child,
        .song-card[data-level="6+"] .song-details span:first-child {
            color: #f39c12;
        }

        /* Expert 7-9+ */
        .song-card[data-level="7"] .song-details span:first-child,
        .song-card[data-level="7+"] .song-details span:first-child,
        .song-card[data-level="8"] .song-details span:first-child,
        .song-card[data-level="8+"] .song-details span:first-child,
        .song-card[data-level="9"] .song-details span:first-child,
        .song-card[data-level="9+"] .song-details span:first-child {
            color: #c0392b;
        }

        /* Master 10-12+ */
        .song-card[data-level="10"] .song-details span:first-child,
        .song-card[data-level="10+"] .song-details span:first-child,
        .song-card[data-level="11"] .song-details span:first-child,
        .song-card[data-level="11+"] .song-details span:first-child,
        .song-card[data-level="12"] .song-details span:first-child,
        .song-card[data-level="12+"] .song-details span:first-child {
            color: #8e44ad;
        }

        /* Re:Master 13-15 */
        .song-card[data-level="13"] .song-details span:first-child,
        .song-card[data-level="13+"] .song-details span:first-child,
        .song-card[data-level="14"] .song-details span:first-child,
        .song-card[data-level="14+"] .song-details span:first-child,
        .song-card[data-level="15"] .song-details span:first-child {
            color: #2980b9;
        }
    </style>
</head>
<body>
    <div class="container">
        <div class="header">
            <div class="side-info left">
                <div class="side-info-value">Power by Maimai-Plugin && Yunzai-Bot</div>
                <div class="side-info-title">Maimai-Plugin By A1_Panda</div>
            </div>
            
            <img class="header-plate" src="{{plateAsset}}" alt="Name Plate">
            <div class="user-info">
                <div class="user-avatar">
                    <img class="user-icon" src="{{iconAsset}}" alt="User Icon">
                </div>
                <div class="user-details">
                    <div class="user-basic">
                        <div class="user-name">{{nickname}}</div>
                        <div class="user-rating">Rating: {{rating}} = {{standard_total}} + {{dx_total}}</div>
                    </div>
                </div>
            </div>
            
            <div class="side-info right">
                <div class="side-info-value">Power by Maimai-Plugin && Yunzai-Bot</div>
                <div class="side-info-title">Maimai-Plugin By A1_Panda</div>
            </div>
        </div>
        
        <div class="song-list">
            <div class="song-section">
                <h2>Standard 35曲目</h2>
                <div class="song-grid">
                {{#standard}}
                <div class="song-card" data-level="{{level}}">
                    <div class="song-id">{{song_id}}</div>
                    <img class="song-jacket" src="{{jacket_url}}" alt="{{song_name}}">
                    <div class="song-info">
                        <div class="song-title">{{song_name}}</div>
                        <div class="song-details">
                            <span>难度: {{level}}</span>
                            <span>DX分数: {{dx_score}}</span>
                            <span class="song-rating">Rating: {{dx_rating}}</span>
                        </div>
                        <div class="song-icons">                           
                            {{#fc}}<img src="{{fc_icon}}" alt="FC">{{/fc}}
                            {{#fs}}<img src="{{fs_icon}}" alt="FS">{{/fs}}
                            <img src="{{rate_icon}}" alt="{{rate}}">                            
                        </div>
                    </div>
                    <div class="song-achievements">{{achievements}}%</div>
                </div>
                {{/standard}}
                </div>
            </div>
            
            <div class="song-section">
                <h2>DX 15曲目</h2>
                <div class="song-grid">
                {{#dx}}
                <div class="song-card" data-level="{{level}}">
                    <div class="song-id">{{song_id}}</div>
                    <img class="song-jacket" src="{{jacket_url}}" alt="{{song_name}}">
                    <div class="song-info">
                        <div class="song-title">{{song_name}}</div>
                        <div class="song-details">
                            <span>难度: {{level}}</span>
                            <span>DX分数: {{dx_score}}</span>
                            <span class="song-rating">Rating: {{dx_rating}}</span>
                        </div>
                        <div class="song-icons">                            
                            {{#fc}}<img src="{{fc_icon}}" alt="FC">{{/fc}}
                            {{#fs}}<img src="{{fs_icon}}" alt="FS">{{/fs}}
                            <img src="{{rate_icon}}" alt="{{rate}}">
                        </div>
                    </div>
                    <div class="song-achievements">{{achievements}}%</div>
                </div>
                {{/dx}}
                </div>
            </div>
        </div>
    </div>
</body>
</html>
